package com.zp.self.module.level_5_设计模式.行为型模式.Ⅵ_观察者模式.Observer;

/**
 * @author ：by Zeng Peng
 * @date ：Created 2022/7/3 20:54
 * @description ：
 */
public class Client {
    public static void main(String[] args) {
        Policemen policemen0 = new Policemen("黑猫警长");
        Policemen policemen1 = new Policemen("无情铁手");

        Thief thief = new Thief("小偷张三");
        thief.addObserver(policemen0);
        thief.addObserver(policemen1);
        thief.steal("带洞的袜子");
    }
}
